package cn.com.freelibra.forum.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.com.freelibra.forum.dao.KeywordsMapper;
import cn.com.freelibra.forum.po.Keywords;
import cn.com.freelibra.forum.service.KeywordsService;

@Service("keywordsService")  
public class KeywordsServiceImpl implements KeywordsService{
    @Resource  
    private KeywordsMapper dao;
    
    @Override
	public int add(Keywords entity) {
		return dao.insert(entity);
	}

	@Override
	public List<Keywords> selectAll() {
		return dao.selectAll();
	}
}
